import { FormGroup, FormBuilder } from '@angular/forms';
import { OnInit } from '@angular/core';

/**
 * 画面列表
 */
export abstract class ScreenListParentComponent implements OnInit {

  form: FormGroup;

  constructor(protected formBuilder: FormBuilder) {}

  ngOnInit(): void {
    this.form = this.formBuilder.group({
      screenName:[null,[]],
    });
  }

  /**
   * 查询
   */
  onSearch(event) {
    this.doSearch(event);
  }

  protected abstract doSearch(event);
  /**
   * 添加
   */
  onAddSelectedSceens(event) {
    this.doAddSelectedSceens(event);
  }

  protected abstract doAddSelectedSceens(event);
  /**
   * 删除
   */
  onDeleteSelectedSceens(event) {
    this.doDeleteSelectedSceens(event);
  }

  protected abstract doDeleteSelectedSceens(event);
  /**
   * 编辑
   */
  onEditScreen(event) {
    this.doEditScreen(event);
  }

  protected abstract doEditScreen(event);
  /**
   * 删除
   */
  onDeleteScreen(event) {
    this.doDeleteScreen(event);
  }

  protected abstract doDeleteScreen(event);

}